package demo3;

/**
 * 查看JDK中Thread对象的所有状态
 */

public class Text02 {
    public static void main(String[] args) {

        //线程状态 定义在一个枚举当中
        for (Thread.State state : Thread.State.values()) {
            System.out.println(state);
        }
    }
}
